package 期末练习;

import java.time.LocalDateTime;
import java.time.chrono.ChronoLocalDateTime;
import java.util.Scanner;

    public class Time {
        public static void main(String[] args) {

            Scanner sc=new Scanner(System.in);

            while (true){

                System.out.println("请录入数据");

                String next = sc.next();

                if (next.equals("n")){
                    break;

                }else {

                    LocalDateTime now = LocalDateTime.now();

                    System.out.println(now);
                    System.out.println("输入n退出");

                }


            }
        }
    }
}
